#ifndef NVGPUCLOCK_H
#define NVGPUCLOCK_H

#include <QObject>
#include <string>
#include "nvml.h"
#include <QTimer>

class NvGpuClock : public QObject {
    Q_OBJECT
    Q_PROPERTY(QString getGpuCoreClock READ getGpuCoreClock NOTIFY coreClockChanged)

public:
    explicit NvGpuClock(QObject *parent = nullptr);
    ~NvGpuClock();
    QString getGpuCoreClock() const;

private:
    void updateUtilization();
    QTimer *timer = nullptr;

Q_SIGNALS:
    void coreClockChanged();
};

#endif // NVTEMP_H
